package cn.edu.sdjzu.xg2106.domain;

public class School  implements Comparable<School>{

    @Override
    public int compareTo(School o){
        return (int)(o.id-this.id);
    }

    public School(int id, String description, String no, String remarks,long university_id) {
        this.id = id;
        this.description=description;
        this.no=no;
        this.remarks=remarks;
        this.university_id=university_id;
    }

    public School(int id, String description, String no, String remarks, University university) {
        this.id = id;
        this.description = description;
        this.no = no;
        this.remarks = remarks;
        this.university = university;
    }


    public University university;


    public void setId(int id){
        this.id=id;
    }
    public int getId(){
        return this.id;
    }
    public String getDescription(){
        return this.description;
    }
    public String getNo(){
        return this.no;
    }
    public String getRemarks(){
        return this.remarks;
    }

    public void setNo(String no) {
        this.no = no;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public long getUniversity_id() {
        return university_id;
    }

    public void setUniversity_id(long university_id) {
        this.university_id = university_id;
    }

    private int id;

    @Override
    public String toString() {
        return "School{" +
                "university=" + university +
                ", id=" + id +
                ", description='" + description + '\'' +
                ", no='" + no + '\'' +
                ", remarks='" + remarks + '\'' +
                '}';
    }

    private String description;
    private String no;
    private String remarks;
    private long university_id;
}
